package br.cin.ufpe.corba.exmaples.complex;

import br.cin.ufpe.corba.ORB;
import br.cin.ufpe.corba.Servant;
import br.cin.ufpe.corba.interfacerepository.InterfaceDef;

public abstract class ComplexCalculatorPOA extends Servant implements ComplexCalculator {

	public ComplexCalculatorPOA(ORB orb) {
		super(orb);
	}

	public InterfaceDef getInterfaceDef() {
		InterfaceDef def = new InterfaceDef(ComplexCalculator.class.getCanonicalName());
		def.getBaseInterfaces().add(SimpleCalculator.class.getCanonicalName());
		def.getBaseInterfaces().add(Add.class.getCanonicalName());
		def.getBaseInterfaces().add(Sub.class.getCanonicalName());
		return def;
	}

}
